﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls;
using ICNCentral.InterfazGrafica;

namespace ICNCentral.InterfazGrafica
{
    public partial class Frm_Presentacion : Telerik.WinControls.UI.RadForm
    {
        int ContadorTimer = 0;
        public Frm_Presentacion()
        {
            InitializeComponent();
        }

        private void Frm_Presentacion_Load(object sender, EventArgs e)
        {
            TimerPresentacion.Enabled = true;
        }

        private void TimerPresentacion_Tick(object sender, EventArgs e)
        {
            ContadorTimer++;
            Bar_Presentacion.Text = ContadorTimer + "% Cargado";
            Bar_Presentacion.Value1 = ContadorTimer;
            if (ContadorTimer == 100)
            {
                Frm_Loguin frm_loguin = new Frm_Loguin();
                TimerPresentacion.Enabled = false;
                this.Hide();
                frm_loguin.Show();
            }
        }
    }
}
